package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /*添加购物车接口*/
    void add(ShoppingCartDTO shoppingCartDTO);

    /*查看购物车接口*/
    List<ShoppingCart> listCart();

    /*清空购物车*/
    void cleanCart(Long userId);

    /*删除购物车某一个商品*/
    void deleteCartGoods(ShoppingCartDTO shoppingCartDTO);
}
